import { request } from '@umijs/max';
export async function createCompetition(form) {
    return request('/competition/create',{
        method: 'POST',
        data: form,
        headers: {
            'Content-Type': 'application/json',
          },
    })
}
export async function updateCompetition(form) {
    return request('/competition/update',{
        method: 'POST',
        data: form,
        headers: {
            'Content-Type': 'application/json',
          },
    })
}
export async function paginationQuery(params) {
    return request('/competition/page-query/list',{
        method: 'POST',
        data: params,
        headers: {
            'Content-Type': 'application/json',
          },
    })
}
export async function initCompetitionForIP(form){
    return request('/competition/init/for/ip',{
        method: 'POST',
        data: form,
        headers: {
            'Content-Type': 'application/json',
          },
    })
}
export async function queryRoughInfoList(){
    return request('/competition/query/rough-info/list',{
        method: 'GET'
    })
}
export async function queryCompDetailInfo(param){
    return request(`/competition/query/detail-info?unCode=${param.unCode}`,{
        method: 'GET'
    })
}